<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php echo $this->layout()->title; ?></title>
<meta name="keywords" content="<?php echo $this->layout()->keywords; ?>" />
<meta name="description" content="<?php echo $this->layout()->description; ?>" />

<?php if ($this->layout()->tag == "index"):?>
<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/index.css');?>" />
<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/public.css');?>" />
<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/common.css');?>" />
<?php else: ?>
<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/list.css');?>" />
<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/common.css');?>" />
<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/colorbox.css');?>" />
<?php endif;?>


<script type="text/javascript" src="<?php echo $this->baseUrl('js/jquery-1.7.js');?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('js/base64.js');?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('js/function.js');?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('js/taobao.js');?>"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $this->baseUrl('js/jquery.lazyload.js');?>"></script>
<script language="javascript">
$.ajaxSetup ({
    cache: false //关闭AJAX相应的缓存
});
$(function(){
    $(function() {          
        $("div.pic a img").lazyload({
           placeholder : "<?php echo $this->baseUrl('images/grey.gif');?>",
           effect      : "fadeIn",
		   threshold : 200
        });
    });
    $('.checkLogin').click(function(){
		url=$(this).attr('href');
		index=$(this).attr('index');
		var ddusername='<?=$_SESSION["duoduouser"]?>';
		var img=decode64($('#splistbox ul li').eq(index).children('.pic').children('a').attr('pic'));
		var price=$('#splistbox ul li').eq(index).find('.jiage').find('b').html();
		var fx=$('#splistbox ul li').eq(index).find('.fanmi').find('.jiage').find('b').html();
		$('#layer_goods').show();
		$('#jump_pic').attr('src',img);
		$('#jump_href').attr('href',url);
		$('.jump_price').text(price+'元');
		$('#jump_back').text(fx+'元');
	    if(ddusername!=''){
			window.open(url);
		}
		else{
		    $('.jumpbox').show();
		}
	return false;
	});
	
	$('.checkLogin_iid').click(function(){
		url=$(this).attr('href');
		index=$(this).attr('index');
		var ddusername='<?=$_SESSION["duoduouser"]?>';
		var img=decode64($('#splistbox_iid ul li').children('.pic').children('a').attr('pic'));
		var price=$('#splistbox_iid ul li').find('.jiage').find('b').html();
		var fx=$('#splistbox_iid ul li').eq(index).find('.fanmi').find('.jiage').find('b').html();
		$('#layer_goods').show();
		$('#jump_pic').attr('src',img);
		$('#jump_href').attr('href',url);
		$('.jump_price').text(price+'元');
		$('#jump_back').text(fx+'元');
	    if(ddusername!=''){
			window.open(url);
		}
		else{
		    $('.jumpbox').show();
		}
	return false;
	});
	
	$('#jump_href,#jumpclose').click(function(){
	    $('.jumpbox').hide();
	});
});

function ChangeCss(n)
{ 
	document.getElementById("splistbox").className="splistbox"+n;
}
</script>
<SCRIPT language=JavaScript>
/*定义js路径*/
//var contextPath = "http://<?=URL?>/";
var contextPath = "";
<!--是否开启伪静态-->
var rewrite = 1;
<!--是否开启图片伪本地化-->
var taopicopen = 1;
</SCRIPT>
</head>

<body>
<?php 
$navheadurl="";
?>
<div id="header">
	<div style="width:960px; height:auto; margin:0 auto;">
		<span class="header_left"><a href="<?php echo $navheadurl ?>"><?php echo WEBNICK?>首页</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="#dd" onclick="AddFavorite('<?=$navheadurl?>','<?=WEBNICK?>')">收藏本站</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$navheadurl?>comm/shortcut.php">快捷桌面</a> 
		&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$navheadurl?>sitemap.php" >淘宝分类</a> 
		<?php if(CHA=='1'){?>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$navheadurl?>cha" >测试返现</a><?php }?>
	    <?php if(FXBOPEN=='1'){?>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$navheadurl?>fanxianbao" >返现宝</a><?php }?> 
	    </span>
		<span class="header_right"><?php 
			if($_SESSION["duoduouser"]!=NULL)
			{
				echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/center.php\">账户：".$_SESSION["duoduouser"]."</a> <a href=\"".$navheadurl."user/msg_list.php?act=in\">".$msgsrc."</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/mingxilist.php?act=in\">账户余额：".$money." <img src=\"".$navheadurl."template/".MOBAN."/images/money2.gif\" border=\"0\"  alt=\"账户明细\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/exit.php\">退出</a>";
			}
			else
			{
				echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/register.php\">注册</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/login.php\">登录</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/getpassword.php\">找回密码</a>";
			}
		?></span>
	</div>
</div>


<div class="navtop">
	<div class="logo"><A href="<?=$navheadurl?>index<?=$end?>" <?php if($tag=='index'){echo "class=current";}?> title="网上购物，从这里开始" ><img src="<?php echo $this->baseUrl('images/logo.gif');?>" /></A></div>
	
	<?php if($tag=='tg'){?>
	<div style="float:left; margin-left:15px;">
	<div class="tuangouflsy_logo_span2">
	       <span class="tuangouflsy_logo_span3" style="margin-bottom:3px;position:relative;"><?=$cur_city?></span>
	       <span class="tuangouflsy_logo_span3" style="position:relative; z-index:999;"><input class="submit1" type="button" name="button" id="button" value="" onclick="open_city(this)" />
	
	<div class="tuangouflsy_pf" style="display:none;" onclick="clickDiv(this)" id="div"><span class="tuangouflsy_pf_guanbi"><a href="javascript:void(0)" onclick="close_city()">关闭</a></span>
	   <div class="tuangouflsy_pf_zhongdian">
	     <ul>
	       <li>
	          <span class="tuangouflsy_pf_span1">核心城市</span>
	          <span class="tuangouflsy_pf_span2">
	          <?php foreach($city_sort_arr as $k=>$v){?>
	          	<span class="tuangouflsy_pf_span3"><a href="tg<?=$url_head_city_id?><?=$k?><?=$url_end?>"><?=$v?></a></span>
	          <?php }?>
	          </span>
	       </li>
	        <li style="margin-bottom:10px;"><span class="textcolor1" >请按照拼音首字母来选择城市</span></li>
	     </ul>
	      <div style="clear:both"></div>
	   </div>
	   <div class="tuangouflsy_pf_xuanqu">
	      <div class="tuangouflsy_pf_yinwen">
	      <a href="javascript:void(0)" onclick="changeCity('a')" id="city_a_a" class="sekuai">A</a>
	      <a href="javascript:void(0)" onclick="changeCity('b')" id="city_a_b" class="sekuai">B</a>
	      <a href="javascript:void(0)" onclick="changeCity('c')" id="city_a_c" class="sekuai">C</a>
	      <a href="javascript:void(0)" onclick="changeCity('d')" id="city_a_d" class="sekuai">D</a>
	      <a href="javascript:void(0)" onclick="changeCity('e')" id="city_a_e" class="sekuai">E</a>
	      <a href="javascript:void(0)" onclick="changeCity('f')" id="city_a_f" class="sekuai">F</a>
	      <a href="javascript:void(0)" onclick="changeCity('g')" id="city_a_g" class="sekuai">G</a>
	      <a href="javascript:void(0)" onclick="changeCity('h')" id="city_a_h" class="sekuai">H</a>
	      <a href="javascript:void(0)" onclick="changeCity('j')" id="city_a_j" class="sekuai">J</a>
	      <a href="javascript:void(0)" onclick="changeCity('k')" id="city_a_k" class="sekuai">K</a>
	      <a href="javascript:void(0)" onclick="changeCity('l')" id="city_a_l" class="sekuai">L</a>
	      <a href="javascript:void(0)" onclick="changeCity('m')" id="city_a_m" class="sekuai">M</a>
	      <a href="javascript:void(0)" onclick="changeCity('n')" id="city_a_n" class="sekuai">N</a>
	      <a href="javascript:void(0)" onclick="changeCity('p')" id="city_a_p" class="sekuai">P</a>
	      <a href="javascript:void(0)" onclick="changeCity('q')" id="city_a_q" class="sekuai">Q</a>
	      <a href="javascript:void(0)" onclick="changeCity('r')" id="city_a_r" class="sekuai">R</a>
	      <a href="javascript:void(0)" onclick="changeCity('s')" id="city_a_s" class="sekuai">S</a>
	      <a href="javascript:void(0)" onclick="changeCity('t')" id="city_a_t" class="sekuai">T</a>
	      <a href="javascript:void(0)" onclick="changeCity('w')" id="city_a_w" class="sekuai">W</a>
	      <a href="javascript:void(0)" onclick="changeCity('x')" id="city_a_x" class="sekuai">X</a>
	      <a href="javascript:void(0)" onclick="changeCity('y')" id="city_a_y" class="sekuai">Y</a>
	      <a href="javascript:void(0)" onclick="changeCity('z')" id="city_a_z" class="sekuai">Z</a>      
	      </div>
	      <?php foreach($city_word_arr as $k=>$v){?>
	      <div id="city_span_<?=$k?>" class="tuangouflsy_pf_chengshi" >
	          <?php foreach($v as $key=>$val){?>
	      		<a href="tg<?=$url_head_city_id?><?=$val?><?=$url_end?>" ><?=$city_sort_arr[$val]?></a>
	          <?php }?>
	      </div>
	      <?php }?>
	            <div style="clear:both"></div>
	   </div>
	</div>
	       </span>
	       <div style="clear:both"></div>
	    </div>
	</div>
	<?php }?>
	<div class="searchbox">
	<div style="width:525px; text-align:left">
	<div class="s-nav">
	  <a class="y" id="shangpin" value="输入您想要的宝贝" s="<?=$navheadurl?>list.php" name="q">宝贝</a>
	  <a class="n" id="zhanggui" value="输入您想找的掌柜" s="<?=$navheadurl?>shop.php" name="nick">掌柜</a>
	  <a class="n" id="shangcheng" value="输入您想要的商城" s="<?=$navheadurl?>malllist.php" name="mall">商城</a>
	  <a class="n" id="fenxiang" value="输入您想找的分享" s="<?=$navheadurl?>baobeilist.php" name="key">分享</a>
	  <?php if(TGOPEN==1){?>
	  <a class="n" id="tuan" value="输入您想要搜的团购" s="<?=$navheadurl?>tg.php" name="keyword">团购</a>  
	  <?php }?>
	</div>
	<div class="clear"></div>
	<form class="box" name="formname" method="get" action="<?=$navheadurl?>list.php" style="float:left; " onsubmit="return searchForm()">
	  <span class="box-middle"><input name="q" onfocus="this.value='';keyflag=false;" type="text" id="s-txt" class="s-txt" value="输入您想要的宝贝" /><input type="submit" class="sbutton" value="" /></span>
	  <span class="box-right"></span>
	</form>
	</div>
	</div>
	</div>	

<div id="tab" >	 		
<?php
	foreach ($this->layout()->navlist as $entry) { 
	    if($entry->tag == $this->layout()->tag) $class="class='nowtab'";
		else $class = "class='linktab'";
		if($entry->target ==0) $target = "target='_self'";
		elseif($entry->target == 1) $target="target='_blank'";
		$link="<a href='". $this->escape($entry->link)."' ".$target."><span ".$class.">". $this->escape($entry->name)."</span></a>";
	    $nav[]=$link;   
    }
    $nav_link = implode('<img class="topmargin" src="'.$this->baseUrl('images/sline.png').'" />',$nav);
    echo $nav_link;
?>   
</div>
		
<?php echo $this->layout()->content; ?>	


<div class="clear"></div>
<div id="footer">
	<div class="renzheng"><img src="<?php echo $this->baseUrl('images/fot_1.jpg');?>" /><img src="<?php echo $this->baseUrl('images/fot_2.jpg');?>" /><img src="<?php echo $this->baseUrl('images/taoke.gif');?>" /><img src="<?php echo $this->baseUrl('images/fot_3.jpg');?>" /><img src="<?php echo $this->baseUrl('images/fot_4.jpg');?>" />
	</div>
	
	<div class="renzheng"><img src="<?php echo $this->baseUrl('images/buliang.gif');?>" /><img src="<?php echo $this->baseUrl('images/bottom.gif');?>" /><img src="<?php echo $this->baseUrl('images/110.jpg');?>" /><img src="<?php echo $this->baseUrl('images/315online.gif');?>" /></div>
	
	<div class="tj" style="font-size:10px">
	  <!--版权开始-->Copyright ©2008-2012&nbsp;&nbsp;<a href="http://<?php echo URL;?>"><?php echo WEBTITLE;?></a>&nbsp; 版权所有<a href="http://soft.duoduo123.com"><span style="color:#006600"></span></a>&nbsp;&nbsp;&nbsp;<a href="http://www.miibeian.gov.cn"><?php echo ICP;?></a>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo TONGJI;?><!--end--><br /><br />
	<div style=" color:#999999">Power By <a href="http://soft.duoduo123.com" style="font-size:10px"><span style="color:#FF6600">Duo</span><span style="color:#006600">duo </span><span style="color:#FF6600">v7.4</span></a></div>
	  <br /></div>
	</div>
</div>

<SCRIPT type="text/javascript" src="js/jquery.colorbox.js"></SCRIPT>
<script>
$(function(){
	$('#splistbox ul li a.seepj').colorbox({ innerWidth:770, innerHeight:460, inline:true, href:"#inline"});
    $('#splistbox ul li a.seepj').click(function(){
	    $('#inline').html('<p><img style="margin-left:317px; margin-top:200px" src="template/<?=MOBAN?>/images/wait.gif" /></p><p style="text-align:center">正在加载评价……</p>');
        var url=$(this).attr('url');
		var goto=$(this).attr('goto');
	    var plurl="http://rate.taobao.com/detail_rate.htm?"+url+"&showContent=2&currentPage=1&ismore=1&siteID=7";
	    $.get('ajax.php',{'plurl':plurl,'fun':'taobao_comment','p':'n'},function(data){
		   $('#inline').html('<div><div style="width:180px; height:25px; line-height:25px; float:left; font-weight:bold; text-align:center">评论</div><div style="width:140px; height:25px; line-height:25px; float:right; font-weight:bold">评价人</div></div>'+data+'<div class="megas512" style="clear:both;text-align:right; margin:15px 0; padding-top:5px"><a href="'+goto+'" target="_blank" onclick="$(\'#cboxOverlay,#cboxWrapper\').hide()">更多.....</a></div>'); 
		});
    });
	
	$('#splistbox_iid ul li a.seepj').colorbox({ innerWidth:770, innerHeight:460, inline:true, href:"#inline"});
    $('#splistbox_iid ul li a.seepj').click(function(){
        $('#inline').html('<p><img style="margin-left:317px; margin-top:200px" src="template/<?=MOBAN?>/images/wait.gif" /></p><p style="text-align:center">正在加载评价……</p>');
		var url=$(this).attr('url');
		var goto=$(this).attr('goto');
	    var plurl="http://rate.taobao.com/detail_rate.htm?"+url+"&showContent=2&currentPage=1&ismore=1&siteID=7";
	    $.get('ajax.php',{'plurl':plurl,'fun':'taobao_comment','p':'n'},function(data){
		   $('#inline').html('<div><div style="width:180px; height:25px; line-height:25px; float:left; font-weight:bold; text-align:center">评论</div><div style="width:140px; height:25px; line-height:25px; float:right; font-weight:bold">评价人</div></div>'+data+'<div class="megas512" style="clear:both;text-align:right; margin:15px 0; padding-top:5px"><a href="'+goto+'" target="_blank" onclick="$(\'#cboxOverlay,#cboxWrapper\').hide()">更多.....</a></div>'); 
		});
    });
})
</script>
<div style="display:none">
<div id="inline"></div>
</div>
</body>
</html>
